import { request } from '../../../request';

// 报废上表格
export function scrapJudgmentTable(data: any) {
  return request({
    url: '/erpsyncmes/baseData/proscraprequest/list',
    method: 'get',
    data
  });
}
// 报废下表格
export function scrapJudgmentTableDown(data: any) {
  return request({
    url: '/erpsyncmes/baseData/bugRequestLog/list',
    method: 'get',
    data
  });
}

// // 打码管理目录--内层打码信息查询
// export function getPrintedCodeLeftList(params: any) {
//   return request({
//     url: '/mes/printCode/inner/list',
//     params
//   });
// }

// export function getRightTableDataDetails(lotNo: number) {
//   return request({
//     url: '/mes/printCode/inner/details',
//     params: {
//       lotNo
//     }
//   });
// }\

// 获取工艺名称下拉
export function getTechNameSelect(params: any) {
  return request({
    url: '/erpsyncmes/baseData/proscraprequest/scarpTechName/list',
    method: 'GET',
    params
  });
}

// 获取新增责任报废列表getRoyiAddList
export function getRoyiAddList() {
  return request({
    url: '/erpsyncmes/baseData/qcsBugTable/departStructure',
    method: 'get'
  });
}
// 查询缺陷列表
export function getBugList(params: any) {
  return request({
    url: '/erpsyncmes/baseData/qcsBugTable/bugTable',
    method: 'get',
    params
  });
}
// 查询用户列表
export function getRoyiListUser(params: any) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params
  });
}
